import moment from 'moment'

export const formatTime = (date: any=new Date(), format: string="YYYY-MM-DD HH:mm:ss") => {
  return moment(date).format(format);
};
